package grape.attend.rest.overtime.mapper;

import grape.attend.rest.overtime.form.OvertimeWorkListForm;
import grape.attend.service.overtime.po.OvertimeWork;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.overtime.form.OvertimeWorkCreateForm;
import grape.attend.rest.overtime.form.OvertimeWorkUpdateForm;
import grape.attend.rest.overtime.form.OvertimeWorkListPageForm;
import grape.attend.rest.overtime.vo.OvertimeWorkVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 加班工作日设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-09
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OvertimeWorkWebMapper extends WebMapper<OvertimeWorkVo, OvertimeWork> {

    OvertimeWork formToPo(OvertimeWorkCreateForm f);
    OvertimeWork formToPo(OvertimeWorkUpdateForm f);
    OvertimeWork formToPo(OvertimeWorkListPageForm f);
    OvertimeWork formToPo(OvertimeWorkListForm f);
}
